﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace BudgetMealsModels.Entities
{
    public class Ingredient
    {
        public int ID { get; set; }
        [Required]
        [MaxLength(100)]
        public string Name { get; set; }
        [Required]
        [MaxLength(100)]
        public string Measurement { get; set; }
        [Required]
        public double Cost { get; set; }
        [InverseProperty("Ingredients")]
        public List<Recipe> Recipes { get; set; }
    }
}
